package top.easycode.app.exception;
public class BusinessRuntimeException extends RuntimeException {
	private String respCode;
	private String respDesc;
	private static final long serialVersionUID = 1L;

	public BusinessRuntimeException() {
		super();
	}

	public BusinessRuntimeException(Throwable arg0) {
		super(arg0);
	}

	public BusinessRuntimeException(String arg0, Throwable arg1) {
		super(arg0, arg1);
	}

	/**
	 * 业务异常错误码和错误描述构造器
	 *
	 * @param respCode
	 * @param respDesc
	 * @author
	 * @creation
	 */
	public BusinessRuntimeException(String respCode, String respDesc) {
		this.respCode = respCode;
		this.respDesc = respDesc;
	}

	/**
	 * 业务异常信息、错误码和错误描述构造器
	 * 
	 * @param message
	 * @param respCode
	 * @param respDesc
	 * @author david.feng
	 * @creation 2014-7-4 上午10:24:53
	 */
	public BusinessRuntimeException(String message, String respCode, String respDesc) {
		super(message);
		this.respCode = respCode;
		this.respDesc = respDesc;
	}

	public String getRespCode() {
		return respCode;
	}

	public void setRespCode(String respCode) {
		this.respCode = respCode;
	}

	public String getRespDesc() {
		return respDesc;
	}

	public void setRespDesc(String respDesc) {
		this.respDesc = respDesc;
	}
}
